package com.x.Part5_methodDemo;


/**
 * ClassName: Method
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2023/9/15 3:03
 */
public class MethodTest {
    public static void main(String[] args) {
        Employee e1 = new Employee();
        e1.setAge(47);
        e1.name = "五六七";
        e1.id = "A123456";
        e1.salary = 9876.50;

        //容易忘记new MyDate()
        e1.birthday = new MyDate();
        e1.birthday.year = "1970";
        e1.birthday.month = "03";
        e1.birthday.day = "13";

        e1.showMessage();

    }
}
